package com.boot.dog.entities.base;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;

import lombok.Data;

/**
 * @Author: MaxLv
 * @Date: 2019/12/2
 */
@Data
public class BasePojo implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "create_date")
    private Date createDate;

    @TableField(value = "creator", fill = FieldFill.INSERT)
    private String creator;

    @TableField(value = "modify_date", fill = FieldFill.UPDATE)
    private Date modifyDate;

    @TableField(value = "modifier", fill = FieldFill.UPDATE)
    private String modifier;

    @TableLogic
    @TableField(value = "deleted")
    private Integer deleted;
}
